GE Digital interview question

React JS and Javascript