Cognizant interview question

DSA question, implement searching on given sorted array