Metier interview question

Some sample code was provided and I was to find any bugs.