Sponsored
Use these hints if you're stuck. Try solving on your own first.
Iterate over array and calculate each element of the resulting array using <code>|</code> operation.
Solve with full IDE support and test cases