Pregunta de entrevista de QGenda

Simple coding exercise and asked how I would test it.