Solve the congruency solution
Just make sure your computer doesn't crash solution