Leetcode 1000. Minimum Cost to Merge Stones | Hello Interview