J.P. Morgan interview question

Asked about some Python-based OOP questions