Meta interview question

interval scheduling problem, string manipulation