Problem: Maximize/minimize function

Problem

Solution