Pregunta de entrevista de Amazon

Tree based Leetcode quesiton, probably easy or medium.