Given `nums` containing only 0s, 1s, and 2s (red, white, blue), sort it in place so equal colors are adjacent and ordered 0, 1, 2. Return the sorted array. Do it in one pass without a library sort.