Leetcode Range Addition Problem Generator Math