Driver code
public static void Main ( String [ ] args ) { int [ ] a = { 15 , 1 , 2 , 17 , 6 } ; int [ ] b = { 1 , 1 , 0 , 1 , 1 } ; int n = a . Length ; bool res = sorting_possible ( a , b , n ) ; if ( res ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }