If A is the area, d the thickness of depletion layer and K the dielectric constant then the capacitance is
C = εAK/d = 8.8 × 10−12 × 1.5 × 10−4 × 10/40 × 10−6 = 3.3 × 10−10 F
The charge liberated
q = 5 × 106 × 1.6 × 10−19/3.5 = 2.286 × 10−13 Coulomb
Potential developed
V = q/C = 2.286 × 10−13/3.3 × 10−10 = 0.69 × 10−3 V
= 0.69 mV