Talent500 interview question

coding: implement debounce function in JS