✅C++ | Very Easy
\nclass Solution {\npublic:\n    int sumOfSquares(vector<int>& nums) {\n        int n=nums.size();\n        int ans=0;\n        for(int i=0;i<n;i++){\n         
```\nclass Solution {\npublic:\n    int sumOfSquares(vector<int>& nums) {\n        int n=nums.size();\n        int ans=0;\n        for(int i=0;i<n;i++){\n            if(n%(i+1)==0){\n              ans+=(nums[i]*nums[i]);\n            }\n        }\n        return ans;\n    }\n};\n```
['C']