Maximum Sum Triplet Leetcode Solutions With Explanation