Question d’entretien chez Bharti Airtel

Problems based on Kadane's algorithm, two pointers