well this method is there .
The sum can be split into cases
1)All of the same colour -1 way
2)5 of a colour , 1 of different colour - 2 * 5 = 10
3)4 of a colour , 2 of same different colour - 3*4 = 12
4)4 of a colour , 2 of different colours - 5C2 * 3 = 30
5)3 of a colour , 3 of another - 4C2 = 6
6)3 of a colour ,2 of another , 1 another = 4*4*4=64
7)3 of a colour , 3 of 3 different colours = 4*5C3 = 40
8)2 ,2 , 2 of 3 different colours = 5C3 = 10
9)2 of a colour ,4 of 4 different colours = 5*5C4 = 25
10)2 of a colour ,2 of another ,2 of 2 different other colours = 5C2 * 4C2 = 60
11)All 6 different = 1
so total = 259 ...
never attempt this in exam ..