Maximum Contiguous Subsequence and Spiral Array Print