Driver Code
public static void Main ( String [ ] args ) { String number = "31462708" ; int l = number . Length ; if ( solve ( number , l ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }