Pandora interview question

Find bug in code snippet