Leetcode 2597. The Number of Beautiful Subsets | Hello Interview