To reach a point (m,n) from (0,0) by following the given two conditions,
let's represent taking a right by value 0 and taking upward by value 1,
whatever path you take from (0,0) to (m,n) it always consists of m rights and n upwards.
in simple words, every path has m 0’s and n 1’s [length of the bit string is m+n, so I can represent the path in the form of bit strings. ].
now let's count the number of paths that are possible:
as we need n 1’s in the bit string let's find out how many bit strings are possible with n 1’s in n+m length bits strings.
which ( n+m C n ) = (n+m C m).