Kainos Interview Question

Write a function to validate a password is alphanumeric.