Microsoft Interview Question

2-D Array problem and recursion