Amazon interview question

All coding questions from trees, array and stacks.