Tavant Interview Question

Design pattern related questions need to write the logic for few