Python algorithm written to determine how a group of lifeguards should rotate through a set of stands