Append the MEX of the first k numbers of the array a to the end of array b and erase them from the array a,
shifting the positions of the remaining numbers in a.
后半句中a中数字的顺序是任意调换的吗