Pregunta de entrevista de Playground Games

A few trivial programming problems.