First of all, there is a typo in the second step of your solution, you lost your epsilon on the right hand side of the inequality.
Second, this is an "if and only if" statement, which means you need to prove the forward direction (Assume |x-a|<e and show a-e < x < a+e) and the backward direction (which you did). In this case the steps are all reversible, but for ''if an only if" statements in general, you need to show both directions.