Sketch/hints: you need to find the identity and prove existence of inverses. The idea is that conditions 1 and 2 say that $L_a:G\to G$ and $R_b:G\to G$ given by $L_a(x)=ax$ and $R_b(x) = xb$ are injective. Since $G$ is finite, $L_a$ and $R_b$ are also bijective. So fix $a\in G$. There is $e_a \in G$ such that $L_a(e_a)=a$. This $e_a$ will be the identity. So you have to show that:
i) $R_a(e_a)=a$ as well (here associativity comes in)
ii) Given $a,b\in G$, we have $e_a = e_b$. So pick any of those $e_a$ and call it $e$: this will be the identity.
Now, for every $a \in G$ there is $a'\in G$ such that $L_a(a') = e$. Then show:
(iii) $R_a(a')=e$. This allows you to denote $a'=a^{-1}$.
I'll let you, based on the above, think of a counter-example for infinite $G$. I can try to provide more details later if I find the time.