Question 6Find all functions $f: \mathbb{Z} \rightarrow \mathbb{Z}$ such that $$ n^{2}+4 f(n)=f(f(n))^{2} $$ for all $n \in \mathbb{Z}$.