Rodeapps interview question

Was a pretty easy problem to handle classes, OOP