Machstatz interview question

classes in python