Thriwe Interview Question

Sort an array with 0, 1, 2.