Oracle interview question

Binary Search and two sum problem