Counting Sort /Comparison Sort?

Let’s go through the Difference between the Counting Sort and Comparison sort. With the help of a hackerrank problem.

Out of Free Stories? Here is my Friend Link.

Counting Sort 1

Given a list of integers, count and output the number of times each value appears as a list of space-separated integers.