Pergunta de entrevista da empresa Autodesk

Two-sum question in Python, and the time complexity.