What is the primary role of a judge in ensuring a fair trial within the judicial system?
A) To advocate for the prosecution's case
B) To interpret and apply the law impartially to all cases
C) To provide legal advice to the defense
D) To negotiate plea bargains between the parties