Driver code
public static void Main ( String [ ] args ) { char [ ] S1 = " geeksforgeeks " . ToCharArray ( ) ; removeDuplicates ( S1 ) ; char [ ] S2 = " aabcca " . ToCharArray ( ) ; removeDuplicates ( S2 ) ; } }