Driver code
public static void Main ( ) { int [ ] A = { 1 , 4 , 3 , 5 , 7 } ; int [ ] B = { 2 , 2 , 5 , 8 , 9 } ; int n = A . Length ; if ( IsSorted ( A , B , n ) == true ) { Console . Write ( " True " ) ; } else { Console . Write ( " False " ) ; } } }