Leetcode 1589. Maximum Sum Obtained of Any Permutation | Hello Interview