Leetcode 2587. Rearrange Array to Maximize Prefix Score | Hello Interview