This is my solution i don't make this in some language because you guys don't need a algorithm.
Regardless of the size of the circle all we need to know are the positions that individuals are and keep them well regardless of who skirt always know who was the last .

Log in or sign up for Devpost to join the conversation.