As the electron moves in the magnetic field, two forces of equal magnitude are acting on it:
Apply the work-energy theorem to find the potential difference: