My testcase is not passed for this question

I’m unable to pass the testcase for this code.
I’m attaching the ide link below

Check now ->

Why have you used the variable t??

T is for number of testcases. For t test case you have to perform same operations. That’s why i have used t as a variable.
Check input output format.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.