Optimal Partition Of String Leetcode Problems