VueOps interview question

Q: Implement custom map method of Ruby Array class, using Proc.