Amazon Interview Question

Remove duplicate consecutive repeated letters in a string and return the result.