Amazon Interview Question

1) Devise a sorting algorithm 2) Burn the tree