Amazon interview question

Online coding test mostly on Tree data structure