Ruby version of 100 seat circle problem.