Code gives wrong answer can't figure out why

Hi Arpan
is this your first attempt at this question? because I can see one previous attempt that ran successfully on 17th June

I tried this question for the first time today only.

Okay I will check for errors then. Can you tell exactly what your compiler is giving output for the test input