Question d’entretien chez IBM

2Sum problem as in leetcode