P0746 Maximize

P0746