Create tree using postorder and inorder

what is the mistake?

UPDATED SOLUTION