Cognizant interview question

Trigger scenarios