adds maximum stock profit problem