Pfizer Ireland Interview Question

How would I validate a method