What purpose does plea bargaining serve for the defense and the prosecutor? do you believe that it is a fair practice? explain

What purpose does plea bargaining serve for the defense and the prosecutor? do you believe that it is a fair practice? explain