can we take sum of 1st k elements then use for loop remove starting element and add next element with storing the maximum element until taking while loop in for loop
can we take sum of 1st k elements then use for loop remove starting element and add next element with storing the maximum element until taking while loop in for loop