Maximum Alternating Subsequence Sum Leetcode Python Easy