Driver code
public static void Main ( string [ ] args ) { int [ ] arr = { 4 , 8 , 2 , 1 , 4 } ; int N = arr . Length ; int Length = GetMinSubarrayLength ( arr , N ) ; Console . WriteLine ( Length ) ; } }