Microsoft interview question

Implement simple event management class