working word to digit rb soln