Pregunta de entrevista de Oracle

Tree related problems, traversing and dynamic programming