EASY 🔥 || C++ 💯 || SOLUTION.
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\nThe time complexity of the given code is : O(n)\n\n- Space complexity:\nThe space complexity of the code is : O(1)\n\n# Code\n```\nclass Solution {\npublic:\n    int sumOfSquares(vector<int>& nums) {\n        int sumofSquares = 0;\n                \n        for(int i = 1; i<=nums.size(); i++) {\n                if(nums.size() % i == 0) {\n                    sumofSquares  = sumofSquares + nums[i-1] * nums[i-1];\n                }\n        }\n            return sumofSquares;\n    }\n};\n```
['C++']