Leetcode 3645. Maximum Total from Optimal Activation Order | Hello Interview