Question d’entretien chez PepsiCo

Implement Two sum problem in javascript