Leetcode 1891. Cutting Ribbons | Hello Interview