Extremum of a time-inhomogeneous branching random walk