Practice Problem

Partition Labels

Difficulty: Medium

Given a string, partition it into as many parts as possible so that each letter appears in at most one part, and return a list of the sizes of these parts.