Domanda di colloquio di Dassault Systèmes

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