Leetcode Subsets Time Complexity Of Sorting In Python