Write a function to check if two strings are rotations of each other?
Login to Submit
Input: "cat", "tca" Output: true Input: "cook", "okco" Output: true Input: "rat", "rta" Output: false