Question d’entretien chez Amazon

Two sum programming coding question..