Broadridge interview question

Sort the 1s and 0s in a given array without using built-in functions