Nagarro interview question

Find largest sum of a subarray