WealthEngine interview question

How to create class using function?