Sort an array of non-negative integers using counting sort. Count occurrences, then reconstruct sorted array.
Examples