This is Exercise 4.1.14. on page 187 on Rick Durrett's book Probability: Theory and Examples.
Let $X_n,n\ge 1$ be i.i.d. with $EX_1^+<\infty$ and let $Y_n=\max_{1\le m\le n}X_m-cn$.
(i) Let $T=\inf\{n:X_n>a\},p=P(X_n>a)$ and compute $EY_T.$
(ii) Let $\alpha$ be the unique solution of $E(X_1-\alpha)^+=c.$ Show that $EY_T=\alpha$ in this case and use the inequality $Y_n\le\alpha+\sum_{m=1}^n((X_m-\alpha)^+-c)$ for $n\ge 1$ to conclude that if $\tau\ge1$ is a stopping time with $E\tau<\infty,$ then $EY_\tau\le\alpha$.
By conditional on $T$, I calculate $EY_T=E[X_1-a]^+-\frac{c}{p}$. When plug $\alpha$ in, it equals to $c-c/p$. I don't know why it equals to $\alpha$. And the last question is just by Wald's equation.