Pergunta de entrevista da empresa IBM

To solve two coding challenges in 45 minutes.