Mastercard Interview Question

1.Oops concept