This is a Simple approch to this question...
A person has to select 3 scoops from 4 differnent flavours let ( A,B,C,D)
1. he can select 3 scoops of same flavour = 4 ways
2. he can select 2 scoops of same flavour and 1 scoop of different flavour
suppose he selects A A then for the third scoop he had 3 choices = 3
in the same way for BB , CC and DD he has = 3+3+3 = 9 choices
total for A,B,C,D = 3+9 = 12 choices
3. he can choose 3 scoops of 3 different flavous.. which is 4C3..= 4
so total no of ways he can select 3 scoops from 4 different flavours is = 4 + 12 + 4 = 20.
so, the answer is B.