Goldman Sachs interview question

Inorder traversal using an array