inorder traversal of cartesian tree interviewbit solution