Infosys interview question

Binary search program and algorithm