DIY: Partition Labels

Solve the interview question "Partition Labels" in this lesson.

Problem statement

You are given a ...