Apple Interview Question

Coding challenge using binary search.