MAXSUMSQ

1 Pass O(n) Solution
Use Long Long for Number of Sequences