J.P. Morgan interview question

Write an algorithm to detect the highest subsequence sum in an array.