Bank of America Interview Question

How do you sort and array which million 0 and 1 one in a single pass.