I'm reading basic algebra notes and met this exercise:
Let $\circ$ be an operator defined on $G$, if $\forall a,b,c$, $$ab=ac\Rightarrow b=c$$ and $$ba=ca\Rightarrow b=c$$ then $(G,\circ)$ is a group.
I couldn't figure this out. Could you pls give me some hint?