Driver Code
public static void Main ( String [ ] args ) { String str = " geeksforgeeks " ; if ( ifAllDistinct ( str ) ) Console . Write ( - 1 + " STRNEWLINE " ) ; else Console . Write ( findMinLength ( str . ToCharArray ( ) ) ) ; } }