Stock Maximize solution