You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this line in the second condition you want to check that i+1 < length. But if one of breaks is exactly equal to zero, this check will fail (and lalse will be returned).