Sigma Computing interview question

object oriented programming design in Python