Create a simulated traffic light. The traffic light should cycle through red, yellow, and green lights automatically, mimicking the behavior of a real traffic signal.
- Display three lights: red, yellow, and green.
- Automatically cycle through the lights in the correct order (green -> yellow -> red -> green).
- Each light should stay active for a set duration:
- Green: 3 seconds
- Yellow: 1 second
- Red: 4 seconds
- Only one light should be active at a time.
- The cycle should repeat indefinitely.