Min Cost To Cut The Stick Leetcode