BAE Systems Interview Question

How you would go about solving a code bug?