CHEFSPL - Editorial

can someone plz post the testcases . i have written the code but ans is always showing to be wrong!!
here is the link to my code !

i dont get why codechef submission is always wrong!!

@s_verma

What logic did you use.

//