Infosys Interview Question

What is binary search? write its code