Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.
Input: "Hello"
Output: "hello"
Input: "here"
Output: "here"
Input: "LOVELY"
Output: "lovely"
char* toLowerCase(char* str) {
int i = 0;
while(str[i]){
if(str[i] >= 'A' && str[i] <= 'Z'){
str[i] += 'a' - 'A';
}
i++;
}
return str;
}