Pair Solution (Interview Street)

USE BINARY SEARCH =P