MathWorks interview question

Greedy algorithm problems, string manipulation