Question d’entretien chez Amazon

Two sum problem but had different edge cases