Leetcode 3462. Maximum Sum With at Most K Elements | Hello Interview