Why is there n=n-1
hello @harshita.rathee
N variable is indicating number of test case that u want to handle.
and because after one iteration of while loop we will finish one test cases we are decrementing 1 from N(indicating that we have finished one test case).