For the practice problem Stepping Up, what should be the output for the following input?
1
3 3
1 2
1 3
2 3
After spending quite some time trying to solve the problem, I checked an accepted solution and it is giving "IMPOSSIBLE" for the above test case. Shouldn't the answer be 3?