Number of Great Partitions | 2518 LeetCode | Dynamic Programming | Leetcode Weekly Contest 325