Write a function that finds the maximum XOR value of any two substrings of a given string of numbers.
Input:-1, 2, 3, 4
Input Description: Input a string of numbers.
Output: 7
Output Description: Output the maximum XOR value.
Constraints: 1 <= string length <= 10^6
Explanation: