ans should be 1 2, your answer is 1 6.
There must be atleast two open rooms for a draught to pass (as per the question).
Hence ,in this test case , rooms numbered 3,4,5,6 don’t have a draught passing through them.
may be change the base case.
Man I feel so sad I really thought I had it covered, disjointed tree and randomly ordered links. Although my five test cases (including the two you provided, thanks!) pass, my submission still says wrong answer.
Hmm I wish the authors would provide a good set of test cases for us to run our code against.