Pergunta de entrevista da empresa Phenom

probability and statistics based Kadane's algorithm