Capital One Interview Question

design a system to do payment.