Gett Interview Question

Segregate 0s and 1s in an array