Given a string, reverse the characters with out ever creating a new data structure
string_reverse(input:String) -> String
string_reverse("hello") -> "olleh"
string_reverse("racecar") -> "racecar"
- Modify the string in place. Do not create an additional data structure.
- Methods like
split
andreverse
return new instances, thus violating our constraints.