Min xor in a subarray (between L to R)

how we can modify the trie data structure to find min xor between position L to R in an array…there will be Q queries…