using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static long longestSequence(long[] a) { // Return the length of the longest possible sequence of moves. long l = a.Length; long sum=0; long[] arr = new long[l]; for(int i=0;i