For input like [1, 1, 1, 1, 1], the expected output is 0 1 2 3. Why is 0 1 1 2 not a valid output?
because B!=C see the stmt