Given a string, write code to rotate the the string in-place. That means without any extra buffer. Come up with three different ways of doing so.
Anonymous
This was confusing to me initially but I realized after the interview that it's a standard interview question. Basically there's a formula to reverse two parts of the strings and then reverse the entire string. Yet I thought that even having a temporary variable was a buffer when I was discussing it with the interviewer.
Check out your Company Bowl for anonymous work chats.