Goldman Sachs interview question

Reverse string Check if two binary trees were the same