SmartNews Interview Question

Subarray mod K problem. Very similar to Leetcode 974