Pregunta de entrevista de Tata Consultancy Services

Binary search - write code for implementing that