Sort three colours in place
items contains only 0, 1 and 2. Write sort_colours(items) that rearranges
the list in place so all 0s come first, then 1s, then 2s. Return nothing; the
checks look at the list afterwards.
items = [2, 0, 2, 1, 1, 0]; sort_colours(items) -> items is now [0, 0, 1, 1, 2, 2]
The point is to practise sorting without sorted: count the three values and overwrite,
or use three pointers (the Dutch national flag method) for a single pass.
def sort_colours(items):
...