Given a list of integers, find the largest sum of a contiguous subsequence.
Input= {1,2,3,4,5,-1,7,-4,-2}, Output=21 and print the sub-array which is {1,2,3,4,5,-1,7}
Given a list of integers, find the largest sum of a contiguous subsequence.
Input= {1,2,3,4,5,-1,7,-4,-2}, Output=21 and print the sub-array which is {1,2,3,4,5,-1,7}