test 2 (small) failed on case 4: expected 3 got 2 input: 4 1 2 3 4 reference output: 1 2 2 3 candidate output: 1 2 2 2 exit status 1