Arduino delay on timer

Hello and good morning
Your sketch needs a button-handler incl. debouncing and a timer function based on the BLINKWITHOUTDELAY example of IDE.
Have a nice day and enjoy coding in C++.

p.s. Take some time for a search for this typical school assignment inside the forum.