PEAK6 Interview Question

Tech: Valid perfect square. Find if one array is the rotation of another array.