Error in the test case

the test case 1 of this question has a input of 9999 instead of -1 .

@Krish-Banerjee-2770813363035183,

n < 10^5 as given in the question. And there’s a -1 at the end of input as well. There’s no problem in the test cases.

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.