Here is more details about the question:
Let $G$ be a finite group and suppose that all (non-identity) elements have order $2$.
(a) Prove that $G$ is abelian.
(b) Let $a, b$ be two distinct non-identity elements in $G$. Show that the subgroup generated by $a$ and $b$ consists of $4$ distinct elements $e, a, b, ab$ and hence |$\langle a, b\rangle$| $= 4$.
(c) Prove by induction on n that for any set of elements $a_1, a_2, ...a_n$ the subgroup generated by them is of order a power of 2. Deduce that |G| is a power of $2$.
I have finished (a),(b):(a) is simple, and in (b) I define the subgroup $S=\{a^ib^j,i,j\in \{0,1\}\}$ then reach the result but I not very confident. in (c) ,it is about Lagrange's theorem and I think we should use $o(g)$ divides $|G|$, but I am not sure precisely how to reach it.