Nio Robotics records signed calibration adjustments from a robot during a motion sequence. Given an integer array values and an integer target, return the number of contiguous non-empty subarrays whose elements sum exactly to target.
Implement the function using a hash map and a single left-to-right for loop. The array may contain positive, negative, and zero values.
values, a list of integers, and target, an integer.target.def count_target_windows(values, target):