Pfizer Ireland interview question

How would I validate a method