EY Interview Question

scenerio based questions on reactjs