Implement `bellman_update(state, transitions, V, gamma)` returning updated float state value.
bellman_update(state: int, transitions: dict, V: list[float], gamma: float) -> float