Leetcode Maximum Recursion Depth In Python How To Sort