Gett interview question

Segregate 0s and 1s in an array