How can I remove multiple occurrences from a string in python? : <p>I have a string like 'AABA'. I want to remove multiple occurances by removing others. The result should be 'AB'.
Sample Input: AABA
Sample Output: AB</p>
