I know this formula should be used but I do not know how to apply the maximum part $\binom{n+r−1}{r−1}$
Edit: Possible answers are: $\binom{8}{5}$, $\binom{13}{10}$-$\binom{8}{5}$,$\binom{10}{4}$-$\binom{7}{4}$,$\binom{13}{4}$-$\binom{5}{4}$ or $\binom{10}{4}$-$\binom{6}{3}$
Edit2: since there are identical ice creams, some people may get 0 while one may even get 10. But one of them can get MAXIMUM 4.
I believe using principle of inclusion and exclusion (PIE) is the easiest.
if nobody gets more than 4 ice creams:
$$ \begin{aligned} \sum_{i=0}^{\left\lfloor\frac{10}{5}\right\rfloor}{\binom{4}{i}\binom{13-5i}{3}\left( -1\right)^{i}}&=\binom{4}{0}\binom{13}{3}-\binom{4}{1}\binom{8}{3}+\binom{4}{2}\binom{3}{3}\\ &=68 \end{aligned} $$
if only one particular person cannot get more than 4 ice creams:
Say that person A cannot have more than 4. We want to count the number of distribution subtracted by number of distribution in which A get more than 4.
$$ \binom{13}{3}-\binom{8}{3}=230 $$
here, $\binom{8}{3}$ means we distribute 5 candies to 4 people then add 5 candies to person A. this way he always get more than 4.
You may want to read about this PIE, a very powerful tools in combinatorics.