Pergunta de entrevista da empresa Nokia

Solving some programming problems.