char* repeatedChar(char c, int numberOfRepetition)
{
char *pChar = newchar[numberOfRepetition+1]; // Allocates the correct amount of memory
for(int i = 0; i < numberofRepetition; ++i)
pChar[i] = c; // Puts the correct number of characters in the string
pChar[numberOfRepetition] = '\0'; // Null-terminating the string
return pChar;
}