A10 Networks Interview Question

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