Profit.co interview question

How can u implement A Overload function?