Leetcode Missing Number In Arithmetic Progression Formula