Added ruby solution for e2