KPIT Technologies interview question

How will you implement observer pattern on your own without notification centree