Infosys interview question

What is binary search? write its code