Pinterest Interview Question

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