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