Amazon interview question

DSA questions: Binary search based Graph based