FactSet Interview Question

Algorithms: To tell if a string A is rotation of another string B.