I have the following question :
Find untrivial homomorphism : $\mathbb{Z}_2 \oplus \mathbb{Z}_2\rightarrow \mathbb{Z}_4 $
I know that $\mathbb{Z}_2 \oplus \mathbb{Z}_2$ is not cyclic group since $gcd(2,2)=2\neq 1$, and I also know that $\mathbb{Z}_2 \oplus \mathbb{Z}_2$ is abelian group for all $a,b\in \mathbb{Z}_2$ we get $a+b=b+a$ (since operator add +).
Now, I need to find function $$f:\mathbb{Z}_2 \oplus \mathbb{Z}_2\rightarrow \mathbb{Z}_4 $$ Such that : $f(ab)=f(a)f(b)$ now I'm a bit confused since $f$ works on two variables so should I need to find a function $f$ so that $f(a,b)=f(ab)??$ Any ideas how to find such function, tips how to approach such questions?
Thank you!