Hackerrank Counting Sort 1 Solution