Frage im Vorstellungsgespräch bei Uncountable

Some string manipulation problem. Probably leetcode easy or medium