my testcase 0 is running and other testcase are showing exclamation marks
here is my code
What is the error
no code present in link
check the link and share the correct one
Modified Code
there is no mistake in your code
only change you have to done is make size of array according to constraints
Constraints
1 <= T <= 100
1 <= N <= 1000
0 <= Ai <= 9
make size of array atleast 10^3