Question d’entretien chez Google

Leetcode's two sum problem. Easy.