Watch videos for JavaScript Coding Question
5. implement throttle() with leading & trailing option