RingCentral interview question

Implement polyfill for debounce method