Domanda di colloquio di Amazon

Tree question was asked and it was a medium level tree question.