from typing import List


def swap(original: List[str], orig: int, dest: int) -> str:
    """Swaps the element from position orig to destiny from the puzzle

    Parameters
    ----------
    original : List[str]
        A linear representation of a 8-puzzle board
    orig : int
        Origin position
    dest : int
        Destiny position

    Returns
    -------
    str
        The new board after the swap of the elements
    """
    action = original.copy()
    action[orig], action[dest] = action[dest], action[orig]
    return "".join(action)