OYO interview question

Sort an array having only zeros, ones and two.