Driver code
public static void Main ( String [ ] args ) { String str = " _ geeks123" ; int n = str . Length ; if ( isValid ( str , n ) ) Console . WriteLine ( " Valid " ) ; else Console . WriteLine ( " Invalid " ) ; } }