Domanda di colloquio di Amazon

Two DSA questions (two pointers problem and a binary tree problem)