Unique Twitter User ID Set - Company-specific OAs / Twitter OA

Given an array of integers l with size n, write a function that determines the minimum sum of another array l_unique with size n such that:


This is a companion discussion topic for the original entry at https://algo.monster/problems/twitter_oa_unique_user_id_set/