def print_each(array) array.each { |x| puts x.inspect }endhash = { "A" => "a", "B" => "b" }array = hash.to_auntil array.empty? item, quantity = array.pop puts "#{quantity} #{item}"end