Can you please tell me where I am going wrong

hello @haseebshaik00
is it showing tle? or anything else?

No… it’s showing wrong answer… I am able to pass just the last test case

@haseebshaik00
pass ur c variable as reference and then it will work fine