Pregunta de entrevista de RevX

Coding based problems on arrays and trees.