Leetcode Subsets Time Complexity Of Bfs Search Python