Case 1: 3 0 5 6 1 4 2 Case 2: No solution