input: Write a python function to check if a string contains only alphanumeric characters.
  assert check_string('ABC123') == True
  assert check_string('ABC12!@') == False
  assert check_string('123456') == True
output: def check_string(s):
      return s.isalnum()