MathWorks Interview Question

Define a python class. Typical leetcode question