Kainos interview question

Write a function to validate a password is alphanumeric.