Playground Games interview question

A few trivial programming problems.