In this problem you will be doing some funny operations. These operations are basically a mixture of bitwise operations. You will be given a set of distinct numbers. You have to tell me the maximum value of P that can be obtained in any subset of that array. P is defined below :
P = (XOR of all of the values in subset) OR (AND of all of the values in subset)
Here XOR , AND and OR are the bitwise operations. If multiple maximum value of P are possible then consider the subset with maximum length.
One of the resultant subset is {1, 2}.