Repeatedly delete two equal neighbouring characters until none are left to delete, and return the remaining string. For "abbaca": delete bb to get "aaca", delete aa to get "ca".
Example 1
Input:
remove_adjacent_duplicates('abbaca')
Output:
'ca'
Example 2
Input:
remove_adjacent_duplicates('azxxzy')
Output:
'ay'
0 <= len(s) <= 200000s contains lower-case letters.No results yet
Run your code to check it against the examples, or submit to run every test.