Pergunta de entrevista da empresa Instructure

write out a ruby method for arrays that does what 'map' does.