Number-of-Unique-xor-Triplets-i

The above link has the better and path wise understanding and explanation of the question 3513 of Leetcode.