Failing 1 test case

Hey @anubhavb11
If solution doesn’t exist, just print “-1”.
Also take matrices of size 1001*1001
And please mark it as resolved if your code runs :slight_smile: