Given this array of String names, return an array of Hashes. Each Hash should have the keys name and id, which will represent their unique identifier in the form of an integer. The ids can start at 1 and then go up by one.

output should look like:

```
[{:name=>"Bruno", :id=>1},
 {:name=>"Bella", :id=>2},
 {:name=>"Ringo", :id=>3},
 {:name=>"Spot", :id=>4},
 {:name=>"Fluffy", :id=>5},
 {:name=>"Snowball", :id=>6},
 {:name=>"Doc", :id=>7}]   

```

I'm trying to do something like this but I'm having trouble coming up with the right syntax and methods.

```
NAMES = ['Bella', 'Bruno', 'Ringo', 'Spot', 'Fluffy', 'Snowball', 'Doc']

def array_to_hash_array(names)

  i = 1
  NAMES.each do |name|

    name = Hash.new(:name => name, :id => i)

    NAMES << name
    i += 1
  end

  return NAMES
end  

puts array_to_hash_array(NAMES)

```