human
Find bitwise OR of all possible sub | function to return OR of sub - arrays.
Driver Code.
print OR of all subarrays"
Solution in Python:
assistant
#Here is code to find bitwise OR of all possible sub and the other steps required.
 def OR ( a , n ) :
	ans = a [ 0 ]
	for i in range ( 1 , n ) :
		ans |= a [ i ]
	return ans
if __name__ == ' _ _ main _ _ ' :
	a = [ 1 , 4 , 6 ]
	n = len ( a )
	print ( OR ( a , n ) )