new solutions for ctci exercises, inorder tree traversal