Solve the Knight's Tour problem.