Pregunta de entrevista de Seven Peaks Software

How to add a method to the function without modifying the original class?