Acceleration of charge q of mass m in uniform electric field is given as a=mqE.
Applying second equation of motion, S=ut+21at2.
Initially mass is at rest, so u=0.
h=0+21(mqE)t2⇒t=qE2hm⇒t∝m
as mass of proton is heavier than electron, hence electron will take less time.