sum to 0 and an empty hash map with hashMap[0] set to -1 (to handle the case where the subarray starts from index 0).nums using index i.sum by adding nums[i] to it.remainder as sum % k.remainder is not in hashMap, add hashMap[remainder] = i.remainder is already in hashMap and i - hashMap[remainder] > 1, return true (subarray size is at least two).true, return false.