Pergunta de entrevista da empresa J.P. Morgan

If you have an array of integers how to find subarray containing the largest sum?