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