Driver code
public static void Main ( string [ ] args ) { int [ ] arr = { 1 , 2 , 3 , 4 , 5 , 8 } ; int K = 5 ; int N = arr . Length ; if ( isPossible ( arr , N , K ) ) { Console . WriteLine ( " Possible " ) ; } else { Console . WriteLine ( " Not ▁ Possible " ) ; } } }