Leetcode 1218 Longest Arithmetic Subsequence of Given Difference