Leetcode Array Sorting Techniques In Python