Thriwe interview question

Sort an array with 0, 1, 2.