Partially solve the nearest greater rearrangement problem, and one test still failed.