Where it is going wrong...?

One test case is not passing. Please help

hi @akhil54, corrected and commented