MTX Group interview question

Best practice for writing a trigger