https://sbozich.github.io/posts/Sum-intervals-codewars-challenge/
Sum of intervals Codewars challenge - sbozich