This code takes arrays of strings (strings) as arguments and dynamically allocates the necessary memory.
Advantages:
- There is no predefined size of the string array. It initially allocated memory for one, then reallocates if needed.
Restrictions:
- The string should be only 10 - 1 characters long.
- The string should not contain any whitespaces.