The Wayback Machine - https://web.archive.org/web/20220320003617/https://leetcode.com/problems/maximum-alternating-subsequence-sum/