Scribd Inc. Interview Question

Write a debounce function in JS.