Let users dismiss every visible toast at once by pressing the Escape key, using a reusable custom hook.
Asked in frontend interviews at Adobe, Okta and Razorpay