Topic: Array Problem / Level: intermediate

Problem: Find the longest subsequence of an array such that the difference between consecutive elements is the same.

Run the code to see the output here...