HiBob interview question

Implement denounce in typescript. Use generic types.