A solution solves a problem, and the problem is solved, it's 3121. I think what you are asking for is a correct algorithm or method.