💡 Minimum Jumps Required

i am getting wrong ans in this q, what is the error in my code