He should be grateful. I hear programming interviews are pretty similar, as in the employer provides the code, and will pretty much watch you work it in some cases. Rather be embarrassed now than interview time. I'm honestly impressed he went the entire time memorizing the code enough to be able to explain it, and picked up nada.