FIS Interview Question

write code for observer pattern