[LintCode] Rotate String