Answer
Please see the work below.
Work Step by Step
If we place a diamagnetic material in ax external magnetic field so its electrons moves in opposite direction to that of external magnetic field. Thus a repulsive force is produced and this force is made upward to levitate the diamagnetic material against force of gravity.