Pergunta de entrevista da empresa Test

Two sum from leetcode platform.