def binary_search(nums: list[int], y: int) -> bool:
    # your move
