33 Dutch national flag (3-way partition) Medium Sorting

Sort an array of 0s, 1s, and 2s in one pass.