<aside> 💡 Frequency is the keyword
</aside>
Find the largest element of your array.
Create an auxiliar array the size of the largest element.
The frequency of the element 2 is placed on the index 2. If it appears 10 times in the array, the 1o is placed in the index 2.
Put your ordered elements (based on it’s index)
Place the element in the output array, then decrease its frequency on the frequency array.