Sample case not understood for "Trie Interview" Question

Given:
Input:
4
1 2 6 8
Output:
17.
But if take
here a=2, b= 3, c= 3, d=4 , so (2 ^ 6) + (6 ^ 8) = 4 + 14 = 18.
Please explain how i am wrong

@chikugoel1998
Actually one constraint here is incorrect.
It is b < c
Then it will be 17

Please correct it for future

@chikugoel1998
Have sent the request for the same
Thanks for pointing it out

If there isn’t anything else you need help with please close this doubt