Restrição alfanumérica

Crie um método que retorne true quando uma string contiver apenas letras do alfabeto inglês ou apenas dígitos ASCII.

Retorne false se ela contiver tanto letras quanto dígitos, algum espaço ou símbolo, ou se estiver vazia.

Exemplos

Program.alphanumericRestriction("Bold") ➞ true

Program.alphanumericRestriction("123454321") ➞ true

Program.alphanumericRestriction("H3LL0") ➞ false

Program.alphanumericRestriction("ed@bit") ➞ false