Amazon Interview Question

Ques1 : related to binary search ques2 : related to priority queue