At the point $x = 0$ function is not continuous as limit value not equal to $f(0)$. So, it is a critical point and can be either a local maxima or local minima. Since, $x=0$ is a boundary point and $\displaystyle \lim_{x \to 0} f(x) = 0,$ and $f(0) = 1,$ at $x=0, f(x)$ is having a local maximum.