Sponsored
Use these hints if you're stuck. Try solving on your own first.
Find the longest suffix which is also a prefix and the length is multiple of <code>k</code>.
Solve with full IDE support and test cases