NoBroker interview question

Search element in a array - Binary Search