Sponsored
Use these hints if you're stuck. Try solving on your own first.
Is there a way to iterate through all the subsets of the array?
Can we use recursion to efficiently iterate through all the subsets?
Solve with full IDE support and test cases