Given an array, colors, which contains a combination of the following three elements: • 0 (representing red) • 1 (representing white) • 2 (representing blue)
The task is to sort the array in-place so that: All 0s (red) come first, followed by 1s (white), then 2s (blue)