It would be fantastic if the candidate could just click a "run" button at any time, and (provided with some input string), see the output.
Of course this would make the pass rate a lot higher... but, assuming you tracked each iteration, would give the recruiter a chance to look at how the candidate goes about identifying their mistakes.