Checking if the reverse of the String is already present in the set
else if ( dict . Contains ( t ) ) { left . Add ( S [ i ] ) ; right . Add ( t ) ; dict . Remove ( S [ i ] ) ; dict . Remove ( t ) ; } } printPalindrome ( left , mid , right ) ; }