Coforge interview question

React practical question - start & stop timer on button click