Rosetta Problems

Maximum Sum Obtained of Any Permutation

https://leetcode.com/problems/maximum-sum-obtained-of-any-permutation