Leetcode 3219. Minimum Cost for Cutting Cake II | Hello Interview