https://www.geeksforgeeks.org/sum-minimum-maximum-elements-subarrays-size-k/