Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
If you find that 2 indexes in the array (id1, id2) have the same value (nums [id1] == nums [id2]), you could infer the values of (x, y) based on the results of query (id1, id2, x, y).