Amazon Interview Question

1) Next greater number. 2) One problem on Dijkstra algorithm. 3) Two questions on BST.