Easygo interview question

In the second round coding task, I was asked to create an accordion component using React.