Leetcode 3287. Find the Maximum Sequence Value of Array | Hello Interview