Subarrays with XOR at Least K

Given an array of non-negative integers nums and a non-negative integer k, count the contiguous, non-empty subarrays of nums whose bitwise XOR of all elements is greater than or equal to k.

A subarray nums[i..j] is a slice of adjacent positions with i <= j. Its XOR is computed over every element in that slice, so a single element is a valid subarray whose XOR is the element itself.

The comparison is a numeric threshold, not an equality test. Subarrays with XOR strictly greater than k also count, and when k = 0 every subarray qualifies because a XOR value is never negative.

A subarray XOR equals prefix[j] ^ prefix[i - 1], where prefix is the running XOR from the start of the array. Two different subarrays may share the same XOR value and each one still contributes to the count.

Examples
Input: [[3,1,2,3],2]
Output: 6
Hints

Subarrays with XOR at Least K

Given an array of non-negative integers `nums` and a non-negative integer `k`, count the contiguous, non-empty subarrays of `nums` whose bitwise XOR of all elements is greater than or equal to `k`.