Company: Decimal_Point
Difficulty: medium
Double XOR pairs Problem Description Given a positive integer N. You have to find all pairs of integers (x, y) such that: 1 4 = 2 * (2) => 4 = 4. For (3, 1): 3 + 1 = 4. And 3 + 1 = 2 * (3 XOR 1) => 4 = 2 * (2) => 4 = 4. For the second test case, N = 7: No valid pairs satisfy the conditions, so we print "-1 -1". For the third test case, N = 144: There are 4 pairs satisfying the conditions: (36, 108), (44, 100), (100, 44), and (108, 36). Constraints 1 <= T <= 50 1 <= N <= 10^9