Microsoft interview question

2-D Array problem and recursion