Electronic Arts interview question

Most challenging programming task.