Infosys interview question

Splitting Text and Number in string