Amazon Interview Question

DSA questions: Binary search based Graph based