A10 Networks interview question

write two algorithm question. One is "rotate string (Leetcode #796)