David Weekley Homes Interview Question

to sort an array of balls in two different colors.