Seven Peaks Software interview question

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