Veriforce interview question

Apex, trigger, batch class, code to resolve errors.