Pregunta de entrevista de Morning

Fix function that uses Luhn algorithm, refactor it and add functionality