Capgemini interview question

Lwc simple scenerio Apex Trigger write rollup summary