Can you please explain what the question wants ? And how to approach it ?
OR Subarrays : DP Bitmask
Write all subarrays of the given array. You need to calculate the sum of or of each element in every subarray
First try to think brute force then i will tell how to approach further.
can i get the code i am unable to write .