Let $U$ be a bounded, open subset of $\mathbb{R}^n$. Prove that there exists a constant $C$, depending on only $U$, such that $$\max_{\bar{U}} |u|\le C(\max_{\partial U} |g|+\max_{\bar{U}} |f|)$$ wherever $u$ is a smooth solution of \begin{cases}-\Delta u=f & \text{in }U\\ \quad \, \, \, u=g & \text{on } \partial U \end{cases}
This is from PDE Evans (2nd edition), Chapter 2 Exercise 6. (Note that $\bar{U}$ is the closure of $U$.)
First, I tried proving for the boundary case, that is, suppose $x \in \partial U$. Then $u=g$. We have $$|u|=|g|\le \max_{\partial U} |g| \le \max_{\partial U}|g|+\max_{\bar{U}}|f|.$$ Hence, $|u|$ is bounded by $\max_{\partial U}|g|+\max_{\bar{U}}|f|$. So there exists a $C > 0$ such that $|u| \le C(\max_{\partial U}|g|+\max_{\bar{U}}|f|)$. Thus, $$\max_{\partial U} |u| \le C(\max_{\partial U}|g|+\max_{\bar{U}}|f|),$$ as required.
Now, how can I prove for the interior case, that is, for $x \in U$? I wanted to use strong maximum principle, but that applies only to harmonic solutions, so I can't use that here.