oneliner: return sum for nlagrest Counter items lambda enumerate range len 
```python3 []
class Solution:
    def findXSum(self, nums: List[int], k: int, x: int) -> List[int]:
        return [
            sum(b*a 
                for a,b in 
                    nlargest(x,
                            Counter(nums[l:r]).items(),
                            key=lambda z:(z[1],z[0]))
                )
                for r,l in 
                        enumerate(
                      range(len(nums)-k+1),
                    k)
        ]
            
```
['Python3']