Given an array of integers and two values a and b, return the sum of all elements that are at least a and at most b.