realize that,
to go from $(a,b) \rightarrow (n,m)$ using the given 2 moves only – “one unit up” or “one unit right”
it will always take exact total of $(n-a) + (m–b)$ moves out of which $(n-a)$ have to be one unit up and $(m-b)$ have to be one unit down
so this tells us
number of ways to go from(a,b) to (n,m) = select (n-a) moves which will be up out of the total (n-a + m-b) moves
i.e $n-a+m-b \choose n-a$
$$\text{ans} = [ (0,0)\rightarrow(10,10) ] \ – \ [[(0,0)\rightarrow(4,4)] \ \times \ [(4,4)\rightarrow(5,4)] \ \times \ [(5,4)\rightarrow(10,10)] ]$$
$$ans = \binom{10+10}{10} – \binom{4+4}{4}\times1\times\binom{10-5+10-4}{10-5}$$