More Hints for Question 1

This is what each processor can do: Initialize a counter to 1. Send a message with its ID to the right neighbour. Upon receiving a message, increase counter if ID in message is not its own. When does the algorithm end?