The conversation between human and AI assistant.
[|Human|] Given a string, merge all consecutive duplicates of a letter and return the result.
[|AI|] The resulting string after merging all consecutive duplicates in the input string "aabbbcc" is "abc".
[|Human|] 
Given a string, merge all consecutive duplicates of a letter and return the result.