HeapTrace interview question

mainly python, sql and machine learning