DDB Mudra Group Interview Question

How to write a trigger with solution of mutating trigger error.