Describe a challenging bug you encountered in a previous project or internship. How did you diagnose, debug, and ultimately fix it?