title: Removing duplicates in a string in Python
body: <p>What is an efficient algorithm to removing all duplicates in a string? </p>
  
  <p>For example : <strong>aaaabbbccdbdbcd</strong></p>
  
  <p>Required result: <strong>abcd</strong></p>