Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 3 , 7 , 2 , 3 } ; int n = arr . Length ; int m = 3 ; int ans = findLen ( arr , 0 , 0 , n , m ) ; if ( ans == - 1 ) Console . WriteLine ( 0 ) ; else Console . WriteLine ( ans ) ; } }