Sollicitatievraag bij Uncountable

Some string manipulation problem. Probably leetcode easy or medium