Pergunta de entrevista da empresa Accenture

How will you save a string into Array.. where the string is a random number and the pattern differs everytime, the number and alphabets should be stored separately?