Test case fails


#1

For the Input array : [ 1000, 1000, 1000, 1000, 1001, 1002, 1003, 1003, 1004, 1010 ]
I am getting output:
1000 1000 1000 1000 1001 1002 1003 1003 1004 1010 -> Incorrect
But for the Input array of same length, only changes the 1000 to 100 and I am getting correct output: [ 100, 100, 100, 100, 1001, 1002, 1003, 1003, 1004, 1010 ]
Your function returned the following output:
100 100 1001 1002 1003 1003 1004 1010 `-> Correct
Why I am getting incorrect output for 1000 and correct for 100?