Oracle Interview Question

Sort and array of 1-0 in O(n)