[Solution by Dr. Abubacker] On $[0,1)$ and $[1,2)$ the maximum is $2+x$. At $x=2$: $\max\{5,4,6\}=6$, which differs from the limit $4$. So $f$ is discontinuous only at $x=2$ ($m=1$) and differentiable everywhere in $(0,2)$ ($n=0$). $(1+0)^2+2=3$. Answer (4).