Counting Sort Hackerrank Solution