ZeMoSo Interview Question

Code kadane's problem in java