Robosoft Technologies interview question

Binary search program asked in technical round