Question d’entretien chez Hudson's Bay Company

Solve the "two Sum" problem using Javascript