Amazon Interview Question

Implement array map polyfill code