The correct option is D g downwards, u upwards
Initially, the elevator and stone are moving upwards with a speed u. When the stone is released from elevator, the stone continues to move upwards due to inertia and thus speed of the stone just after it is released is u (upwards). Acceleration due to gravity g acts in the downward direction.