Sobes.tech
Junior — Senior

Removing duplicate characters in a string

livecode

Task condition

Implement a function that removes extra repeated characters caused by a stuck key from a given string.

String inputStr = "Ззддррррррааавствввууй, Сссссбееееррр!";
String expectedStr = "Здравствуй, Сбер!";