Leetcode Subsets Time Complexity In Python