arr
.group_by{|n| n[:name]}
.map{|n| { name: n[0], value: n[1].sum{|m| m[:value]} }}
str
.delete(' ')
.split('')
.reduce(Hash.new(0)){|acc, n| acc[n] += 1; acc}
.each{|k, v| puts "#{k}: #{v}"}
toInsert = 'test.'
newStr = str.dup.sub!(/(?<=www\.)/, toInsert) || (toInsert + str)
vowelsCount = Hash['aeiou'.chars.map{|n| [ n, 0 ]}]
gets.chomp.chars.each{|n| vowelsCount[n] += 1 if vowelsCount.key?(n)}
print(vowelsCount)
search = [ 'White', 'Black', 'Asian', 'Hispanic' ]
max = arr
.select{|n| search.include?(n['description'])}
.max_by{|n| n['count']}