Since, the elevator is moving upwards the there will be an upward acceleration on the ball. Therefore, because of the pseudo force the acceleration will be shifted downward. So, the force will be (mg+ma) on the ball in the elevator. The ball will take less time in an elevator to reach.
Person A will take more time.