Solving find all pair sum problem from http://code-warrior.herokuapp.com.