Question d’entretien chez Agoda

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