Typical interview question: Please find the problem in this code