Cycle Counting Solution page 2