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