Amazon Interview Question

asking to design some OOP module