Leetcode Subsets Time Complexity In Python For Loop