Infosys Interview Question

Simple search algorithm: binary search