Fractal interview question

Polyfill for reverse() method in JavaScript