Select your answers. Once selected, you cannot change them.
Given two arrays A and B of the same length, write a function that returns true if B is a rotation of A.
Example: A = [1, 2, 3, 4, 5] B = [3, 4, 5, 1, 2] Output: true