You are given an array of positive integers nums. You may erase exactly one subarray whose elements are all unique. The score of the erasure is the sum of the erased elements.
Return the maximum score you can get by erasing exactly one such subarray. A subarray is a contiguous, non-empty part of the array.