Sum Of Minimum And Maximum Elements Of All Subarrays Of Size K Leetcode