Mastercard Interview Question

They asked about design patterns - factory and strategy.