Uncountable interview question

Some string manipulation problem. Probably leetcode easy or medium