Describe a complex technical bug you solved in a past project. What was your methodology for diagnosing and resolving it?