Pregunta de entrevista de Uber

Asked binary search leetcode, common question