PowerSchool Group Interview Question

seggregate 0's and 1's in an array