Nagarro Interview Question

sort an array containing 0 and 1 in O(n)