Alida Interview Question

Using an OOP language,validate a postal code against a given psuedocode algorithm.