NeoSOFT interview question

singleton class, heigher order function,