Mastercard interview question

Core Java, Spring