Pregunta de entrevista de Amazon

1. Leetcod question using tree structure.