Unacademy interview question

denounce and throttle function