Epic interview question

to write a program based on binary search.