Describe a complex technical bug you encountered in a previous role and the systematic process you used to diagnose and resolve it.