Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try to minimize each element by swapping bits with any of the elements after it.
If you swap out all the 1s in some element, this will lead to a product of zero.
Solve with full IDE support and test cases