Pergunta de entrevista da empresa Rodeapps

Was a pretty easy problem to handle classes, OOP