It looks like non-strict condition cause fail in test like this:
`find([1], 1, 0, 0)` . Correct me if I'm wrong.
Your implementation returns `-1`, however correct answer is `1`.