MAXSUMSQ: Final accepted code added.

Time Complexity: O(n)
Running Time: 0.37 secs