Mastercard interview question

1.Oops concept