Partition Labels - Medium Python Greedy Interview Problem | Unnested