hackerrank: counting sort2