Leetcode 2405. Optimal Partition of String | Hello Interview