McDonald's Interview Question

Asked me to code a solution involving binary search