Steps :
Calculate the length of the string.
Scan every character(ch) of a string one by one
if (ch is a digit) then append it in res1 string.
else if (ch is alphabet) append in string res2.
else append in string res3.
Print all the strings, we will have one string containing a numeric part, other non-numeric part, and the last one contains special characters.
Source: https://www.geeksforgeeks.org/split-numeric-alphabetic-and-special-symbols-from-a-string/