Create answer.rb

running code
http://ideone.com/pC5033