def flip_rule(rule):
    """
    Flip the rule from left to right.
    """
    flipped_rule = []

    rows = rule.split("/")
    for row in rows:
        new_row = ""
        for cell in row:
            new_row = cell + new_row

        flipped_rule.append(new_row)

    return "/".join(flipped_rule)