2908. Minimum Sum of Mountain Triplets I
You are given a 0-indexed array
numsof integers.A triplet of indices
(i, j, k)is a mountain if:
i < j < knums[i] < nums[j]andnums[k] < nums[j]Return the minimum possible sum of a mountain triplet of
nums. If no such triplet exists, return-1.