from typing import Sequence


def move_position(password: str, args: Sequence[str]) -> str:
    """
    Move position operation: the sequence 'args' should contain two indices, X and Y. The character
    at index X will be removed from the original string and inserted at position Y.
    """
    first, second, *_ = [int(arg) for arg in args]
    removed = password[first]
    without = password[:first] + password[first + 1 :]
    return without[:second] + removed + without[second:]