(b)
The number of distinct $n$-digit numbers to be formed using digits 2, 5 and 7 is $3^{n}$. We have to find $n$ so that
$3^{n} \geq 900 \Rightarrow 3^{n - 2} \geq 100$
$\Rightarrow \ n - 2 \geq 5 \Rightarrow n \geq 7$
So the least value of $n$ is 7