Iteration & condition || Very simple & easy to understand solution
\n\n# Code\n\nint sumOfSquares(vector<int>& nums) {\n    int sum = 0, n = nums.size();\n    for(int i = 0; i < nums.size(); ++i){\n        if(n % (i+1) == 0) su
\n\n# Code\n```\nint sumOfSquares(vector<int>& nums) {\n    int sum = 0, n = nums.size();\n    for(int i = 0; i < nums.size(); ++i){\n        if(n % (i+1) == 0) sum += nums[i] * nums[i];\n    }\n    return sum;\n}\n```\n\n<b>Here is an article of my recent interview experience at Amazon, you may like :\nhttps://leetcode.com/discuss/interview-experience/3171859/Journey-to-a-FAANG-Company-Amazon-or-SDE2-(L5)-or-Bangalore-or-Oct-2022-Accepted
['C++']