Code giving wrong output

Please check my submission and guide me where am I wrong?

@Syed-Siddiqui-2497215583854102,
Reviewing your code buddy!

@Syed-Siddiqui-2497215583854102,

Your code returns the same grid. Check your code using the sample test case.

It is giving the same grid everytime.

@Syed-Siddiqui-2497215583854102,
You should create different methods to check if the row is safe, column is safe and if the cell is safe instead of 1 method to check for all. Then take the ‘and’ of all the boolean values. If the value is true. Then put the number.

I didn’t get the point. Can you please do corrections in collab mode?

Are you there? Please respond