Driver code
static void Main ( ) { List < List < int > > maze = new List < List < int > > ( ) ; maze . Add ( new List < int > { 1 , 2 , 3 } ) ; maze . Add ( new List < int > { 4 , 5 , 6 } ) ; maze . Add ( new List < int > { 7 , 8 , 9 } ) ; findPaths ( maze , 3 , 3 ) ; } }