Rotate String | KMP | Leetcode 796