Question d’entretien chez Amazon

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