Ness Technology interview question

Trigger logic based on some scenario