Alida interview question

Using an OOP language, write a program to validate a credit card against a given psuedocode algorithm.