Moglix interview question

Largest Sum Contiguous Subarray