Pregunta de entrevista de Amazon

DSA questions: Binary search based Graph based