Autodesk Interview Question

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