Video solutions for “Sum of Weighted Modes in Subarrays” are not available yet. Check out the text solution instead.