Swift💯 1 liner
One-Liner, terse (accepted answer)
**One-Liner, terse (accepted answer)**
```
class Solution {
  func sumOfSquares(_ nums: [Int]) -> Int {
    zip(nums,1...).filter{nums.count%$1 == 0}.map{x,_ in x*x}.reduce(0,+)
  }
}
```
['Swift']