Phenom interview question

probability and statistics based Kadane's algorithm