Leetcode 3672. Sum of Weighted Modes in Subarrays | Hello Interview