Mastercard interview question

Spring & Design Pattern