J.P. Morgan Interview Question

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