Pregunta de entrevista de Bloomberg

Asked to code for two sum problem (from leetcode)