Pregunta de entrevista de IBM

To solve two coding challenges in 45 minutes.