EAI Technologies interview question

First round: Foo/bar coding question