Question d’entretien chez Tech Mahindra

two sum from leetcode medium