Maximum subsequence problem.

maxsum.pdf