Print pre from given post and inorder

https://ide.geeksforgeeks.org/0F3E7Wjoq9
whats wrong in this code?