Pergunta de entrevista da empresa Yello

I had to analyze a simple class and write a couple functions to extend functionality.