We already know that $0<\frac{1}{n^2}$ for any $n\in\mathbb{N}$. By the definition of infimum you only need to show that $0$ is the biggest number with this property.
Assume it is not true, so there exists $x>0$ such that $x < \frac{1}{n^2}$ for any $n\in\mathbb{N}$. Then $xn^2<1$ for any $n\in\mathbb{N}$.
Now without a loss of generality we may assume that $x<1$. Otherwise $n=1$ would contradict the inequality. Put $n := \lceil\frac{1}{x}\rceil$ (here $\lceil\cdot\rceil$ denotes the ceiling function). Note that $n\in\mathbb{N}$ and furthermore
$$xn^2=x\bigg\lceil\frac{1}{x}\bigg\rceil^2 \geq x\bigg(\frac{1}{x}\bigg)^2=\frac{1}{x}>1$$
Last inequality since $x<1$. Contradiction. $\Box$.