Leetcode 3509. Maximum Product of Subsequences With an Alternating Sum Equal to K | Hello Interview