c#, Linq
Intuition\n Describe your first thoughts on how to solve this problem. \nHere we can query the initial nums array with a help of Linq\n\n# Approach\n Describe y
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\nHere we can query the initial `nums` array with a help of Linq\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\nLinq query\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n$$O(n)$$\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n$$O(1)$$\n\n# Code\n```\npublic class Solution {\n    public int SumOfSquares(int[] nums) => nums\n      .Where((item, index) => nums.Length % (index + 1) == 0)\n      .Sum(item => item * item);    \n}\n```
['C#']