LeetCode Solution, Medium, 763. Partition Labels