MathWorks interview question

Define a python class. Typical leetcode question