Concept Flow - Counting Sort Algorithm
Find max value in input array
Create count array of size max+1
Initialize count array with zeros
Count frequency of each element
Modify count array to store cumulative counts
Build output array by placing elements at correct positions
Copy output array back to input array
Sorting complete
Counting Sort counts how many times each number appears, then uses these counts to place numbers in order.
