Describe a time when you had to debug a flaky automated test. What was the root cause, and how did you resolve it?