Pergunta de entrevista da empresa Bloomberg

Asked to code for two sum problem (from leetcode)