Driver code
public static void Main ( String [ ] args ) { seive ( ) ; int [ ] arr = { 2 , 4 , 2 , 2 , 4 , 2 , 4 , 2 } ; int n = arr . Length ; int k = 2 ; Console . WriteLine ( maxSizeArr ( arr , n , k ) ) ; } }