Cognizant interview question

Salesforce, apex, visual force, trigger before trigger after trigger