Simple, Beats 100%
Code

# Code
```java []
class Solution {
    public int sumOfSquares(int[] nums) {
       int sum = 0;
       int n = nums.length;

       for (int i = 0; i < n; i++){
        if (n % (i + 1) == 0){ 
            sum += nums[i] * nums[i];}
       } 

       return sum;
    }
}
```
['Java']