X172: stringClean

Given a string, return a recursively "cleaned" string where adjacent chars that are the same have been reduced to a single char. So "yyzzza" yields "yza".

Your Answer:

Feedback

Your feedback will appear here when you check your answer.