Sort Colors (Dutch Flag)
Given an array `nums` containing only the values `0`, `1`, and `2`, sort it **in place** so that all `0`s come first, followed by all `1`s, and then all `2`s. Return the sorted array (the same array instance may be returned).