Unacademy Interview Question

denounce and throttle function