Uber interview question

Asked binary search leetcode, common question