Driver code
static void Main ( ) { int N = 2 ; List < List < int > > Arr = new List < List < int > > ( ) ; Arr . Add ( new List < int > ( ) ) ; Arr [ 0 ] . Add ( 5 ) ; Arr [ 0 ] . Add ( 2 ) ; Arr [ 0 ] . Add ( 3 ) ; Arr [ 0 ] . Add ( 4 ) ; Arr . Add ( new List < int > ( ) ) ; Arr [ 1 ] . Add ( 1 ) ; Arr [ 1 ] . Add ( 6 ) ;