Leetcode 2874. Maximum Value of an Ordered Triplet II | Hello Interview