Error while compiling the code

my code is giving the correct output in my pc but here it is here throwing exception

why the error is only showing for Compile&Test mode? when I submit the solution it

when I submit the solution it does not giving me any error !

Hey @faizahmed2696
I see that I see that you have got a correct answer in the question. Do you have any further doubts?Do you have any further doubts?

can i unlock the editorial soultion to look for a different approach if I have succussfully submitted my soultion and got 100?

If you have submitted successfully. Then you can unlock editorial.