Driver Code
public static void Main ( ) { int [ ] arr = { 2 , 1 , 2 , 1 , 1 , 1 , 3 } ; int N = arr . Length ; int M = 2 , K = 2 ; if ( checkExists ( arr , N , M , K ) ) { Console . WriteLine ( " Yes " ) ; } else { Console . WriteLine ( " No " ) ; } } }