// Java program to check if two given strings are rotations of each other
static boolean areRotations(String str1, String str2) { return (str1.length() == st