In one operation you may flip any single bit of any element of the array. Return the minimum number of operations required so that the XOR of all elements becomes zero.
Input: A JSON object {"nums": [<non-negative integers>]}.
Output: Return the minimum number of single-bit flips.
Input: {"nums":[1,2,3]}
Output: 0
Explanation: The XOR is already 0, so no operations are needed.Input: {"nums":[1,2,4]}
Output: 3
Explanation: The XOR is 7 with three set bits -> 3 operations.1 <= len(nums) <= 10^50 <= nums[i] <= 10^9