Sponsored
Use these hints if you're stuck. Try solving on your own first.
Can we enumerate all possible subsets?
The maximum bitwise-OR is the bitwise-OR of the whole array.
Solve with full IDE support and test cases