Pergunta de entrevista da empresa Capital One

Calculating whether credit card was valid or not based on rules