Validate and infer credit cards with Luhn | Stripe Interview Question