Google interview question

How do I deal with mistakes and errors