Sponsored
Use these hints if you're stuck. Try solving on your own first.
The answer should be a divisor of <code>s.length</code>.
Check each candidate naively.
Solve with full IDE support and test cases