Infosys interview question

Binary Search Depth First Search