Pinterest interview question

Q. Sort an array wit 0,2 and 1's numbers only.