Pergunta de entrevista da empresa EAI Technologies

First round: Foo/bar coding question