IBM Interview Question

2Sum problem as in leetcode