Given an array of integers, the task is to count the number of triplets (i, j, k) such that 0 <= i < j <= k < arr.length and the XOR of the subarray from index i to j-1 is equal to the XOR of the subarray from index j to k.
Click Run to execute sample tests.