$G$ is a group. Let $e$ and $f$ be in $G$. Use induction to prove that $(ef)^n=e(fe)^{n-1}f$ for all $n>0$.
For the base case with $n=1$, I proved $(ef)^1=e(fe)^{1-1}f$ which gives $(ef)^1=e(fe)^{0}f$ so $ef=ef$
I am not sure how to proceed for $n+1$. Possibly by splitting up $(ef)^{n+1}$ to be $(ef)^n(ef)$?
You don't need to use induction, just spell it out:
$$ (ef)^{n}=(ef) \cdots (ef) =e(fe) \cdots (fe)f =e(fe)^{n-1}f $$
Edit: since your teacher asked you to do so, you can make explicit the underlying induction:
For $n=1$, the claim follows from $(fe)^{0}=1$.
If the claim is true for $n \geqslant 1$, then $(ef)^{n+1}=ef(ef)^{n}=ef(e(fe)^{n-1}f)=e(fe)(fe)^{n-1}f=e(fe)^{n}f$.