Beats 100% | 0ms Runtime | Easy solution
Code
# Code
```java []
class Solution {
    public int sumOfSquares(int[] nums) {
        int len=nums.length;
        int sum=0;
        for(int i=1;i<=len;i++){
            if(len%i==0){
                int sqr = nums[i-1]*nums[i-1];
                sum=sum+sqr;
            }
        }
        return sum;
    }
}
```
['Java']