Testcases are not passing
code is correct no error
only one modification you have to do
change size of array according to constraints
Constraints
Number is less than 10^6
so array size should be 10^6
after this change testcases should pass
if not then feel free to ask
if yes then show your response through like button
and don’t forgot to mark doubt as resolved