2 .
Freddy is designing toy traffic lights. He programs a toy car to stop when the lights are red and go when the lights are green. He writes this program:
Go
If Red, Go
If Green, Go
Freddy tests his program. But the car does not stop at a red light. Can you help Freddy debug his program? What should Freddy code?
Stop - If Red, Go - If Green, Go
Stop - If Red, Stop - If Green, Stop
Go - If Red, Stop - If Green, Go
Go - If Red, Stop - If Green, Stop