Leetcode 3500. Minimum Cost to Divide Array Into Subarrays | Hello Interview