Hi. For part of a code I'm making, I want to reverse strings.

.sgnirts esrever ot tnaw I ,gnikam m'I edoc a fo trap roF .iH


What I was thinking of doing is making a kind of bubblesort function for strings, but that seems like it would take a lot of code. My professor has said this can be done in about ten lines of code. I figure I'll need a for loop and I'll need an integer denoting the number of characters in the string.

Eh, what would be the best method of going about this?(I'm just looking for a few hints).