Maximum Element-Sum of a Complete Subset of Indices

Maximum Element-Sum of a Complete Subset of Indices - Coding Problem | K5kC