Stores all roman characters
Set < Character > st = new HashSet < > ( ) ; for ( char x : arr ) st . add ( x ) ; Character s [ ] = new Character [ S . length ( ) ] ; for ( int i = 0 ; i < S . length ( ) ; i ++ ) s [ i ] = S . charAt ( i ) ;