1 indexed array was main point
Intuition\nThis question was easy we have to find the size of array then check according to the question. In this question catch was this array will 1 indexed a
# Intuition\nThis question was easy we have to find the size of array then check according to the question. In this question catch was this array will 1 indexed array means array indexing start from 1\n\n# Approach\nwe have find those index which satisfy the given condition and add to a variable sum.\n\n# Complexity\n- Time complexity:\no(n)\n\n- Space complexity:\nO(1)\n\n\n# Code\n```\nclass Solution {\npublic:\n    int sumOfSquares(vector<int>& nums) {\n        int s=0;\n        \n        int n=nums.size();\n        for(int i=0;i<n;i++){\n            if(n%(i+1)==0){\n                s=s+nums[i]*nums[i];\n                \n            }\n        }\n        return s;\n        \n    }\n};\n```
['C++']