def rotations(s):
    """Get all the rotations of a string
    E.g.
    'abc' => ['abc', 'bca', 'cba']
    """
    all_rotations = []
    for i in range(len(s)):
        rotation = s[i:] + s[:i]
        all_rotations.append(rotation)
    return all_rotations