I'm not getting the output.Where i'm doing wrong.Help!

hi @sanjaypcj small mistake, updated and commented