EAI Technologies Interview Question

First round: Foo/bar coding question