Provide some sample code, perhaps with bugs, perhaps without, and ask the candidate to add features, etc.