Barclays Interview Question

Given a piece of code, find the bugs in it.