Pregunta de entrevista de Tech Mahindra

two sum from leetcode medium