Recursively remove all the adjacent characters formed by removing the adjacent characters
while ( remStr . length ( ) > 0 && s . length ( ) > 0 && remStr . charAt ( 0 ) == s . charAt ( s . length ( ) - 1 ) ) {