Function that returns a new character array.
Returns a new character array of size elements.
size
Integer that represents the number of elements in the new array.