RevX interview question

Coding based problems on arrays and trees.