Sponsored
Use these hints if you're stuck. Try solving on your own first.
Since n <= 14, we can consider every subset of nums2.
We can represent every subset of nums2 using bitmasks.
Solve with full IDE support and test cases