Driver code
public static void Main ( String [ ] args ) { String str = " GeeksforGeeks " ; if ( uniquechars ( str ) ) { Console . Write ( " The ▁ String ▁ " + str + " ▁ has ▁ all ▁ unique ▁ characters STRNEWLINE " ) ; } else { Console . Write ( " The ▁ String ▁ " + str + " ▁ has ▁ duplicate ▁ characters STRNEWLINE " ) ; } } }