Piyush and magical park


two of the testcases are showing wrong answer.
pls tell the correct code.

hey @yutikakhanna in line 15 of your code inside your for loop you are checking if s>=0 but as per problem statement strength should always be greater than k ,update your line 15 by if(s>=k) and you are good to go.