Code is showing wrong output

please tell why the code is showing wrong output
the code is https://ide.codingblocks.com/s/121190

You are using the ‘construct’ constructor to create your binary tree. But the given array is not the inorder traversal of the tree. You need to construct your tree using the ‘Add’ function that you wrote. Your remove function is correct.