Tell me about a complex technical bug you encountered in a previous role and the systematic approach you used to diagnose and resolve it.