Divisibility rule of 3:
A number is divisible by 3 if sum of its digits is divisible by 3.
Let the digit in thousands place be $x$.
$7+1+5+x+4+2+3= 22+x$
Smallest possible value of $x$ so that the sum is divisible by $3$ is $2$ ($24\mod 3=0$)
Hence option (B) is correct answer