Write a retry decorator with parameters: the number of attempts, the pause between attempts, and a tuple of exceptions on which to retry. If all attempts end in an error, the last exception should propagate out.
~15 min by voice
How to approach it
They're checking your understanding of decorators with parameters (three levels of nesting) and your carefulness with edge cases: the exact number of calls, filtering exceptions, re-raising the last error instead of a silent None, no unnecessary pause.
The interviewer will ask this question and listen. Think out loud and ask for a hint if you need one. When you're done, pause or tap “That's my answer”. In about a minute, your score and the points you covered show up here.