Maveric Systems interview question

binary search program