Give an example of a non abelian group $G$ and a subgroup $H\subset Z(G) $(proper subgroup) such that $H$ is not characteristic subgroup of $G$

Solution 1:

$$S_3 \times \Bbb Z/2 \Bbb Z \times \Bbb Z / 2 \Bbb Z$$