Pergunta de entrevista da empresa Uber

Asked binary search leetcode, common question