XOR profit problem

i m getting correct output
failiing testcase please tell wher i m wrong

@poojadas408 you will have to use bitmasking for this problem, using loops will give TLE. Anyway I dont understand what you are trying to do here, you will have to check for every possible pair if you use a loop but you are not doing that here maybe thats why it is giving wrong answer

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.