Lumenalta interview question

To solve a react code challenge