Given an array nums containing only 0, 1, and 2, reorder it in-place so equal values are grouped together in the order red, white, blue. Return the final array after the in-place updates.
nums
0
1
2