The problem is based on Heisenberg's Uncertainty Principle which state that 'it is not possible to determine simultaneously both the position and momentum of an electron'. It is given by the formula-
p *x =h /4pie
where, p = momentum of the electron (mass of electron * velocity)
x = uncertainty
h= planck's constant
By putting the values, the velocity of the electron can be calculated.