Observer Design Pattern in detail | Interview Question