Pregunta de entrevista de IDrive

Given 2 programming problems to solve