Watch videos for JavaScript Coding Question
7. implement debounce() with leading & trailing option