I'm looking for a way to rotate a string to the left N times. Here are some examples:
Let the string be abcdef
- if I rotate it
1
time I wantbcdefa
- if I rotate it
2
time I wantcdefab
- if I rotate it
3
time I wantdefabc
- .
- .
- If I rotate the string its string length times, I should get back the original string.