Given an integer array nums and an integer k, return the sum of all elements in nums whose frequency in nums is divisible by k.
If no elements satisfy this condition, return
Constraints:
nums.length
nums[i]
k
Given an integer array nums and an integer k, return the sum of all elements in nums whose frequency in nums is divisible by k.
If no elements satisfy this condition, return
Constraints:
nums.length
nums[i]
k