Simple C solution || 100% beats 😤
Code

# Code
```c []
int sumOfSquares(int* nums, int size) {
    int square = 0;
    for(int i=1;i<=size;i++)
    {
        if(size%i==0) square += nums[i-1]*nums[i-1];
    }
    return square;
}
```
['C']