def pairwise(arr: list[int], target: int) -> int:
    # your move