Pregunta de entrevista de Rafael

To explain my solution briefly, design and implementation.