Capital One Interview Question

Luhn algorithm