Frage im Vorstellungsgespräch bei J.P. Morgan

time complexity,space complexity, python lost functions