Yup, that's just one of the many ways to do a code-review interview wrong.
Each code sample should have multiple things wrong. The best people will find most (not necessarily all) of them. The mediocre will find a few.