Leetcode 3196. Maximize Total Cost of Alternating Subarrays | Hello Interview