This is a circuit that allows you toggle between three different components, in this case LEDs, by pressing a button. The cycle advances each time you press the button: (1) turns all off, (2) turn red on, (3) turn yellow on & red off, (4) turn green on &yellow off, (1) turns all off again, and repeats.