MocDoc interview question

First round:three coding questions bassed on arrays, recursion, matrix.