Hello, here is my code :
I have already submitted my code and passed all the test cases but I have one doubt. When I was testing my code it gets some error which is present in the above code.
When in the line 19 I wrote a [1000] [ ] it gave me error. But when I changed it to a[ ] [1000] the code worked fine. Why it’s happening ?