Plum interview question

To create a timer in react