What is the problem?
First 2 test cases not passing
Change the dimension of your array to 20000001. Answer for the test case 2 is greater than the maximum size you have taken.
What is the problem?
Change the dimension of your array to 20000001. Answer for the test case 2 is greater than the maximum size you have taken.