Leetcode 2909. Minimum Sum of Mountain Triplets II | Hello Interview