Instructure Interview Question

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