Epic Interview Question

to write a program based on binary search.