Challenge says:
“Return the first rotation number if one is found.”
That phrasing sounds like:
-
Count how many rotations are divisible
-
Return that count
But that’s not what the test cases actually expect.
They actually expect…
Return the index (0‑based) of the first rotation that is divisible.