Solve reverse in place