HCLTech interview question

implement a count down timer in react.js