Pergunta de entrevista da empresa PayPay

Design an e-wallet that includes 4 types of payment methods, with deductions made according to priority.