Leetcode Counting Sort Javatpoint Python