Given an integer array nums and an integer k, count the number of non-empty subarrays whose sum is divisible by k.
nums = array of integers, k = integer
Number of subarrays with sum divisible by k
Example 1:
Input:
nums = [4,5,0,-2,-3,1] k = 5
Output:
7
Explanation:
There are 7 such subarrays.