def is_rotation(first, second):
    """Given two strings, is one a rotation of the other."""
    if len(first) != len(second):
        return False
    double_second = second + second
    return first in double_second