Tech Mahindra Interview Question

write a rollup trigger on account object?