max sum subsequence in an array
hacker rank - acm-icpc-team challenge