start value to it.ops to 0.ops.
b. For each element in the queue:
i. Remove the element from the queue.
ii. If the element is equal to goal, return ops.
iii. If the element is out of the range [0, 1000], skip further processing.
iv. If the element has not been visited:
- Mark it as visited.
- Perform each operation (addition, subtraction, XOR) with all numbers in nums and add the results to the queue if they haven't been visited.goal is not reached and the queue is empty, return -1.