Pregunta de entrevista de Dassault Systèmes

Q. Create a function to check if the string is alphanumeric both.