Question d’entretien chez American Express

Q: Two sum question from leetcode