Pregunta de entrevista de Bloomberg

modified two sum leetcode and then time complexity and space