Capital One interview question

Luhn algorithm