Question d’entretien chez Amazon

Two sum, same as no.1 on leetcode