Driver Code
public static void Main ( ) { Pair [ ] arr = new Pair [ ] { new Pair ( 5 , 24 ) , new Pair ( 15 , 25 ) , new Pair ( 27 , 40 ) , new Pair ( 50 , 60 ) } ; Console . Write ( " Length ▁ of ▁ maximum ▁ size STRNEWLINE chain ▁ is ▁ " + maxChainLength ( arr , arr . Length ) ) ; } }