you give 0indexed integer array num in operation select nonnegative integer x index update numsi equal numsi and numsi XOR xNote and bitwise and operation XOR bitwise XOR operationreturn maximum possible bitwise XOR element num apply operation number times Example 1input num 3246output 7explanation Apply operation x 4 3 num3 6 and 6 xor 4 6 and 2 2now num 3 2 4 2 bitwise xor element 3 xor 2 xor 4 xor 2 7it show 7 maximum possible bitwise xornote operation achieve bitwise XOR 7Example 2input num 12392output 11explanation Apply operation zero timesthe bitwise XOR element 1 xor 2 xor 3 xor 9 XOR 2 11it show 11 maximum possible bitwise XOR Constraints1 numslength 1050 numsi 108