Assuming $m,n >0$, we have the picture below. The only ways to get to $(m,n)$ are to start at $(m-1,n)$ and go east or start at $(m,n-1)$ and go north.
Since the last segment of the path is distinct, for $m,n>0$ we have $f(m,n) = f(m-1,n)+f(m,n-1)$.
 = n$. Similarly, $f(m,0) = m$.
Using induction, we see that once we specify the south west boundary values, that all the other values are uniquely defined.
It is easy to check that $f(0,n) = \binom{n}{n}$ and $f(m,0) = \binom{m}{m}$, and since $\binom{n+m}{n} = \binom{n+m-1}{n} + \binom{n+m-1}{n-1} $, we see that $g(m,n) = \binom{n+m}{n}$ satisfies the difference equation and the boundary conditions, hence $f=g$.