Pergunta de entrevista da empresa Bharti Airtel

Problems based on Kadane's algorithm, two pointers