Solution in Ruby for Puzzlenode's International Trade puzzle