Driver Code
public static void Main ( String [ ] args ) { int [ ] arr = { 1 , 4 , 3 , 2 } ; int n = arr . Length ; if ( checkSorted ( n , arr ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }