For the input : N = 3 Array = [5,5,20] K = 1 The code gives the output **15** but the correct answer is **10**
For the input :
N = 3
Array = [5,5,20]
K = 1
The code gives the output 15 but the correct answer is 10