Arithmetic Array Leetcode Questions