The other way that I like to quiz programmers on code is to provide a piece of code that’s broken
in some way and ask them to find the bugs. Much of a programmer’s workday is spent debugging,
and I value that ability almost as highly as I value the ability to write bug-free code. Even if the
programmers, themselves, write bug-free code, a rather highly unlikely occurrence, they’re going to
work on other people’s code, and it’s important that they have the ability to quickly analyze code
that’s not their own.