https://www.hackerrank.com/challenges/countingsort1