Wrong Testcase :


Isn’t [0, 4] supposed to be the correct answer?


here the preference is to the maximum number of kicks and not the maximum number of pain caused and then to the lexografical order , the total damage may be lesser but we need a lexographical order with max number of kicks