Continuous sequence with largest sum

Given an array of integers (both positive and negative)  {2,8,3,2,4,10}. Find the continuous sequence with longest sum. Return the sum
Reference  Cracking the code interview
Link to purchase the book