Pregunta de entrevista de Sam Media

I was asked to refactor some code.