Leetcode 2834. Find the Minimum Possible Sum of a Beautiful Array | Hello Interview