Maximum Increasing Triplet Value
Pick a middle value, take the best smaller value on its left and the best larger value on its right, then score the triplet.
Pick a middle value, take the best smaller value on its left and the best larger value on its right, then score the triplet.