Pergunta de entrevista da empresa ServiceNow

Write a throttled function in JavaScript. (LeetCode #2676)