Leetcode 2841. Maximum Sum of Almost Unique Subarray | Hello Interview