Pergunta de entrevista da empresa CGI

Puzzles, Simple programs in C or any other preferred language