Infosys interview question

Front end js, react questions.