Pregunta de entrevista de STERIS

Gave me a problem and I needed to implement a solution