SD Squared interview question

Q. How interceptor works in Angular2/4/5?