Pergunta de entrevista da empresa Capital One

It was a cashback question. OOP