Sounds like a reasonable assignment, but what specifically are you having trouble with? We aren't a homework service, but will help you if you get stuck.
string toLowerCase(string &s) //&s is correct, but teacher may want without & which is fine
//without makes a pointless copy. with, the function can be void, there isnt any need to return s, but assignments ask for dumb things at times.
{
std::transform(s.begin(), s.end(),s.begin(), ::tolower); //or very close to this, been a while
return s;
}
As said, we prefer not to do homework for you, but I will give you a one liner like this as everyone has days when they just need an example to get kick started.