Https://ide.codingblocks.com/s/239718

it is passing all testcases on compilation,but giving run error on submission

@agarwalarjit.agarwal
Is this code for Class Assignment question? If not please share me the link of question

yes,it is for class assignment