Count Pairs With XOR in Range

Given an array of integers and a range [low, high], count the number of pairs (i, j) with i < j such that the XOR of the pair falls within the inclusive range.

Examples
Input: [[1,4,2,7],2,6]
Output: 6
Hints

Count Pairs With XOR in Range

Given an array of integers and a range `[low, high]`, count the number of pairs `(i, j)` with `i < j` such that the XOR of the pair falls within the inclusive range.