Infosys interview question

They asked about binary search algorithm