weeklychallenge
Return to Sender (Rejecting Repeated Letters Three Different Ways)
Task 2: String Reduction: You are given a word containing only alphabets, Write a function that repeatedly removes adjacent duplicate characters from a string until no adjacent duplicates remain and return the final word. Easy enough with a simple regex substitution using a backreference. In Perl: sub string_reduction($word)