Driver Code
public static void main ( String args [ ] ) { String password1 = " Geeksforgeeks " ; System . out . println ( countCharacters ( password1 ) ) ; String password2 = " Geeks1" ; System . out . println ( countCharacters ( password2 ) ) ; } }