Implement a custom React hook that uses setInterval. Common gotcha: the interval double-fires unless you keep the callback in a useRef instead of useState.

reported at Adobe

say it first

Answer it out loud, in your own words. Then compare.

Interviewers listen for how you get there, not only where you land. The answer opens once you have tried.