Given an array with n objects colored red, white or blue (represented by 0, 1, 2), sort them in-place so that objects of the same color are adjacent, in the order red, white, and blue.
nums = array of integers 0, 1, or 2
Modify nums so that 0s come first, then 1s, then 2s
Example 1:
Input:
nums = [2,0,2,1,1,0]
Output:
[0,0,1,1,2,2]
Explanation:
The sorted order is [0,0,1,1,2,2].