Why I'm not getting correct ans if I'm taking start as 0. but getting correct ans in aggressive cows or in prata

why I’m not getting correct ans if I’m taking start as 0. but getting correct ans in aggressive cows or in prata

hello @talhashamim001

check ur last thread , i already highlighted the chnages that u need to incorporate in ur code to make it work from start =0.

the issue is in ur implementation