Remove consecutive duplicate characters from a string. Example: 'aabbccaab' => 'abcab'
Implement this function:
def remove_consecutive_dups(s: str) -> str:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: s.
Input
'aabbccaab'
Output
'abcab'