Pergunta de entrevista da empresa Capital One

A math-related question about credit cards