2997. Minimum Number of Operations to Make Array XOR Equal to K (Leetcode Medium)