HCLTech interview question

How interceptors work in Angular