Jane Street Interview Question

If there is a trading error, how would you correct it? How to prevent trading error.