The correct option is C 166
Number of solutions without any conditions = 10+4−1C4−1=286
Now, all terms are different can be attained in the following ways:
(a) 0,1,4,5:4!=24 ways
(a) 0,1,3,6:4!=24 ways
(a) 0,1,2,7:4!=24 ways
(a) 0,2,3,5:4!=24 ways
(a) 1,2,3,4:4!=24 ways
Hence, total =24×5=120 ways.
Hence, answer =286−120=166
Hence, (C) is correct.