Now. consider the simple case. In how many ways can I map all the 5 points(A,B,C,D,E) to point '1' ? Only 1 way.
SImilarly, to the point '2' ? Only 1 way.
So, for each point in codomain, there is only 1 way in which all the points in domain get mapped to it.
So, considering all the ways, there 100 ways/cases in which we can map all the points in domain to any single point in codomain.
Now, lets consider the sample space.
How many functions can we have? We can have $100^{5}$.
So, answer = 100/$100^{5}$ = 1/$100^{4}$