Leetcode 2862. Maximum Element-Sum of a Complete Subset of Indices | Hello Interview