VueOps Interview Question

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