Answer is correct but solution not being accepted,Please help

Please let me know what is wrong in below code.

Thanks in advance.