You are on page 1of 3

so ,Output (1,2),(2,3)

Here input is (1,2),(3,4),(5,6)


Becoz no intermediate node among
(1,2),(3,4),(5,6)
Output will be null

You might also like