Pergunta de entrevista da empresa IBM

2Sum problem as in leetcode