Pergunta de entrevista da empresa Apptware

Create a React component that iterates through an array of images, displaying one image at a time. After a 2-second interval, the component should transition to the next image, continuing this cycle. Upon reaching the end of the image array, it should seamlessly loop back to the first image, maintaining the continuous cycle.