Tallan interview question

Given a string remove all consecutive duplicates.