What is the problem in the code ?