add more one solution for credit card in ruby