Mastercard interview question

Basic oops concepts and coding rounds