Indegene interview question

Event handling code