Problem: Maximize function

Problem

Solution