Solve for max product over large string