This is why I'd ask candidates for previously written code they were proud of, rather than telling them to code something trivial.