Dear AYUSHITANDON
The correct answer is 271 times.
| Numbers | Description | Number Formats | Total outcomes |
| 1-9 | Only unit place digit is 5 | 5 | 1 |
| 10-99 | (i) Unit place digit is 5 = 8*1 = 8 (Tenth place cannot contains 0 and 5) (ii) Tenth place digit is 5 = 1*9 = 9 (iii) Both digits are 5 = 1*1 = 1 | $5 5* 55 | 18 |
| 100-999 | (i) Unit place digit is 5 = 8*9*1 = 72 (Hundred place must not 0 & 5) (ii) Tenth place digit is 5 = 8*1*9 = 72 (Hundred place must not 0 & 5) (iii) Hundred place has 5 = 1*9*9 =81 (iv) Any two digits are 5 = (2* 1*1*9 + 8*1*1) = 26 (v) All three digits are 5 = 1 | $*5 $5* 5** 55*,5*5,$55 555 | 252 |
| | Total outcomes | | 271 |
Note: * Mean any digit from 9 {0,1,2,3,4,6,7,8,9} digits.
$ Mean any digit from 8 {1,2,3,4,6,7,8,9} digits.