Domanda di colloquio di IBM

2Sum problem as in leetcode