Driver Code
public static void Main ( string [ ] args ) { int [ ] arr = { 1 , 2 , 3 , 6 , 2 , 3 , 4 , 7 , 8 } ; int k = 3 ; if ( groupInKConsecutive ( arr , k ) ) { Console . Write ( " True " ) ; } else { Console . Write ( " False " ) ; } } }