Pergunta de entrevista da empresa Bloomberg

modified two sum leetcode and then time complexity and space