Mastercard Interview Question

quesns in dsa and oops asked