Pregunta de entrevista de Oracle

Binary Search and two sum problem