When making a Cash Flow Statement, we categorize cash flows into three main activities: operating, investing, and financing.
Goodwill purchase is related to acquiring a business or asset, which falls under investing activities.
So, when you buy goodwill, it shows up in the investing section of the Cash Flow Statement.
Therefore, the correct answer is: Investing activity.