Agoda Interview Question

Count all sub arrays that has elements sum to a k number. Sub array can have more elements than the input array