Pergunta de entrevista da empresa Infosys

One of the questions was to write a debounce function