Solve next highest num problem.