I have been trying to program the 3x 7 trick. The full code is available here: https://codereview.stackexchange.com/questions/9419/programming-of-3-x-7-trick.
I am stuck at step 5.

I have this error when i type in the value for the row.

Not sure what the error is. Need some guidance.
step 6: 
That error comes from the back_to_array function, where you have a typo in the condition of the inner loop. It should be
j < numRowsinstead ofi < numRows.