completed twoSum exercise