Tech Mahindra interview question

write a rollup trigger on account object?