Infosys interview question

React: basic, de-bouncing & throttling