Function to return the maximum bitwise OR of any pair from the given range
static int max_bitwise_or ( int L , int R ) { List < int > v1 = new List < int > ( ) , v2 = new List < int > ( ) , v3 = new List < int > ( ) ; int z = 0 , i , ans = 0 , cnt = 1 ;