need help with school proyect

Write a little function that just switches all LEDs off/LOW. Then as soon as you have decided to switch any one of LEDs on call that function first.

Steve