Input: 	[1,1,1,2]
Output: 	[1,1,0]
Expected: 	[1,1,2]

the requirement is not very clear, it seems it only require you to return a new length of the array. but in fact, it also require you to get the array after removing.