Amazon Interview Question

Online coding test mostly on Tree data structure