Range xor problem

i am unable to do this problem.
pls tell the code.

pls tell the code for this problem

Hi,

Make a trie containing words. First do this much part and then i will tell how to proceed.