FISPAN interview question

1.Debugging question 2.Need to write the code.