Driver Code
public static void Main ( string [ ] args ) { int [ ] arr = { 1 , 2 , 5 , 3 , 5 } ; int N = arr . Length ; if ( check ( arr , N ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }