Solution (source code)

= Solution

The exponential process $Z_t=\exp(-B_t-t/2)$ is a martingale. Under the <Girsanov theorem> change of measure $d\mathbb Q|_{\mathcal F_t}=Z_t,d\mathbb P|_{\mathcal F_t}$, the process $W_t=B_t+t$ is Brownian motion. Its first hitting time $T_a$ of $a>0$ is finite $\mathbb Q$-almost surely. On $\{T_a\leq t\}$, the <optional sampling theorem> gives
$$
\mathbb Q(T_a\leq t)
=\mathbb E_{\mathbb P}[Z_{T_a}\mathbf1_{\{T_a\leq t\}}]
=e^{-a}\mathbb E_{\mathbb P}
\left[e^{T_a/2}\mathbf1_{\{T_a\leq t\}}\right],
$$
because $B_{T_a}=a-T_a$. Letting $t\to\infty$ and applying the <monotone convergence theorem> yields
$$
\mathbb E e^{T_a/2}=e^a.
$$
This is the <Critical exponential moment of a drifted Brownian hitting time>.