Driver Code
public static void Main ( String [ ] args ) { int [ ] arr = { 1 , 3 , 5 , 2 } ; int N = arr . Length ; if ( check ( arr , N ) ) Console . Write ( " YES " ) ; else Console . Write ( " NO " ) ; } }