Maximum Alternating Subsequence Sum Leetcode Python Interview