(i) Case I →7XXXX
at places marked X, we can place 0 to 9 , except 7 , in 9×9×9×9=94 ways
(ii) Case II →XYYY
If 7 is at some other place, first place marked X can be filled in 8 ways ( 0 and 7 not allowed) and places marked Y can be filled in 9 ways. 7 can be placed at any of the four places in 4×8×93 ways ⇒ Required number of ways =94+32×93=41(93)