Genetec Interview Question

What was the problem with this piece of code