Leetcode 3218. Minimum Cost for Cutting Cake I | Hello Interview