Create concise version of Ruby factorial method.
Solve problem 34 using Ruby.