Twitch Interview Question

for online assignment: string manipulation problem under 25 min.